﻿using System;
using System.ServiceModel.Syndication;
using System.Xml;
using NCMIS.ObjectModel.MetaData;

namespace NCMIS.ServiceModel.Syndication
{
    /// <summary>
    /// Represents a CMIS service document.
    /// </summary>
    public class CmisServiceDocument : ServiceDocument
    {
        /// <summary>
        /// Creates a new instance of the <see cref="NCMIS.ServiceModel.Syndication.CmisServiceDocument"/> class.
        /// </summary>
        public CmisServiceDocument()
        {
            this.AttributeExtensions.Add(new XmlQualifiedName("cmis", "http://www.w3.org/2000/xmlns/"), CmisNs.Cmis);
            this.AttributeExtensions.Add(new XmlQualifiedName("cmism", "http://www.w3.org/2000/xmlns/"), CmisNs.Cmism);
            this.AttributeExtensions.Add(new XmlQualifiedName("atom", "http://www.w3.org/2000/xmlns/"), CmisNs.Atom);
            this.AttributeExtensions.Add(new XmlQualifiedName("app", "http://www.w3.org/2000/xmlns/"), CmisNs.App);
            this.AttributeExtensions.Add(new XmlQualifiedName("cmisra", "http://www.w3.org/2000/xmlns/"), CmisNs.Cmisra);
        }
    }
}
